import Vue from 'vue';
// 可以把vant组件都放进来，上线前再删除没有用到的
// vant 按需引入组件

import {
    Button, Swipe, SwipeItem, Row, Col, Icon, Toast, Loading,
    Popup, Checkbox, CheckboxGroup, RadioGroup, Radio, Field, Form, Search, Uploader,
    ActionSheet, Dialog, DropdownMenu, DropdownItem, Notify, Overlay, PullRefresh, ShareSheet,
    SwipeCell, Collapse, CollapseItem, CountDown, Divider, Empty, Lazyload, Grid, GridItem,
    NavBar, Tab, Tabs, Tabbar, TabbarItem, List, Area, Cell, CellGroup, Picker, DatetimePicker
} from 'vant';
const components = {
    Button, Swipe, SwipeItem, Row, Col, Icon, Toast, Loading,
    Popup, Checkbox, CheckboxGroup, RadioGroup, Radio, Field, Form, Search, Uploader,
    ActionSheet, Dialog, DropdownMenu, DropdownItem, Notify, Overlay, PullRefresh, ShareSheet,
    SwipeCell, Collapse, CollapseItem, CountDown, Divider, Empty, Lazyload, Grid, GridItem,
    NavBar, Tab, Tabs, Tabbar, TabbarItem, List, Area, Cell, CellGroup, Picker, DatetimePicker
};

Object.values(components).forEach(component => {
    Vue.use(component)
});

import { Image as VanImage } from 'vant';

Vue.use(VanImage);
